﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using YaAppoint.Response;

namespace YaAppoint.ExamItems
{
    [RemoteService(isEnabled: false)]
    /// <summary>
    /// 检查项目服务
    /// </summary>
    public interface IExamItemAppService:IApplicationService
    {
        /// <summary>
        /// 检查项目同步
        /// </summary>
        Task<BackJson> SyncData(Guid depId, Guid deviceTypeId);

        /// <summary>
        /// 获取科室设备类型选项
        /// </summary>
        Task<BackJson> GetDepDeviceTypeOptions(Guid depId);

        /// <summary>
        /// 获取适用性别选项
        /// </summary>
        BackJson GetApplicableSexOptions();

        /// <summary>
        /// 获取属性列表数据
        /// </summary>
        Task<BackJson> GetExamItemTreeList(Guid depId, Guid deviceTypeId, string? filterName, int page, int pageSize);

        /// <summary>
        /// 删除多个
        /// </summary>
        Task<BackJson> DeleteMany(List<Guid> idList);

        /// <summary>
        /// 删除单个
        /// </summary>
        Task<BackJson> DeleteExamItem(Guid id);

        /// <summary>
        /// 获取详情
        /// </summary>
        Task<BackJson> GetAsync(Guid id);

        /// <summary>
        /// 提交编辑
        /// </summary>
        Task<BackJson> SubmitEdit(ExamItemDto dto);

        /// <summary>
        /// 提交新建
        /// </summary>
        Task<BackJson> SubmitCreate(CreateExamItemDto dto, Guid depId, Guid deviceTypeId);

        /// <summary>
        /// 获取文件夹树数据
        /// </summary>
        Task<BackJson> GetDirTree(Guid depId, Guid deviceTypeId, int page, int pageSize);

        /// <summary>
        /// 左侧边栏树data
        /// </summary>
        Task<BackJson> GetLeftTreeData(Guid? depId);

        /// <summary>
        /// 获取设备选项
        /// </summary>
        Task<BackJson> GetDeviceOptions(Guid examItemId);

        /// <summary>
        /// 获取设备类型下设备选项
        /// </summary>
        Task<BackJson> GetDeviceOptionsByDeviceType(Guid deviceTypeId);
    }
}
